Mark CPU present when it is detected
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Nov 2009 13:04:45 +0000 (13:04 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Nov 2009 13:04:45 +0000 (13:04 +0000)
commit24be6cfe21e78262f7100e6d100aeef0cddd5ab7
tree0d1a729ee8fc9c5bfe3a43a7872fb819bcd0903e
parentfee63693e0ea23d24f239a05c0607021de02dd7f
Mark CPU present when it is detected

Currently a CPU is marked as present only after it has been kicked off
successfully, i.e. before the CPU is brought up, it is not
present. This patch try to mark CPU as present when it is detected
(either through MPS table or ACPI). If it can't be brought up
successfully, it will be marked as non-present again.  This change is
mainly for CPU hot-plug. As discussed, we'd take two step for physical
CPU hot-add. A CPU is firstly marked as present, and later will bring
as online.

Also, In smp_boot_cpus(), xen need only scan all present CPU, and no
need to loop from 0... NR_CPUS. With this change, the bios_cpu_apicid
is not needed anymore.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/mpparse.c
xen/arch/x86/smpboot.c
xen/include/asm-x86/mach-generic/mach_apic.h
xen/include/asm-x86/mpspec.h
xen/include/xen/smp.h